package com.fulihui.systemcore.api;

import com.fulihui.systemcore.dto.SysColumnDTO;
import com.fulihui.systemcore.request.column.CreateSysColumnRequest;
import com.fulihui.systemcore.request.column.SysColumnIdRequest;
import com.fulihui.systemcore.request.column.SysColumnQueryRequest;
import com.fulihui.systemcore.request.column.UpdateSysColumnRequest;
import org.near.servicesupport.result.BaseResult;
import org.near.servicesupport.result.TMultiResult;
import org.near.servicesupport.result.TPageResult;
import org.near.servicesupport.result.TSingleResult;

/**
 * 个人中心类目
 * @author ssm 2017年2月26日
 */
public interface SysColumnService {


    /**
     * 创建信息
     *
     * @param request the request
     * @return
     */
    BaseResult create(CreateSysColumnRequest request);

    /**
     * 修改基本信息
     *
     * @param request the request
     * @return
     */
    BaseResult update(UpdateSysColumnRequest request);

    /**
     * 分页查询
     *
     * @param request the request
     * @return AwardDTO
     */
    TPageResult<SysColumnDTO> queryPage(SysColumnQueryRequest request);


    /**
     * 根据id 业务类型 主键查询
     * @param request
     * @return      SysColumnDTO
     */
    TSingleResult<SysColumnDTO> queryByPk(SysColumnIdRequest request);




    /**
     * 删除
     *
     * @param request the request
     * @return the base result
     */
    BaseResult delete(SysColumnIdRequest request);


    TMultiResult<SysColumnDTO> query(SysColumnQueryRequest request);



    BaseResult updateStatus(SysColumnIdRequest request);


}